package Utils.excel;

public class Quiz {
    private String question;
    private String options;
    /**
     * 1-based
     */
    private Integer answer;
    private String comment;

    public Quiz() {
    }

    public Quiz(String question, String options, Integer answer, String comment) {
        this.question = question;
        this.options = options;
        this.answer = answer;
        this.comment = comment;
    }

    public String getQuestion() {
        return question;
    }

    public void setQuestion(String question) {
        this.question = question;
    }

    public String getOptions() {
        return options;
    }

    public void setOptions(String options) {
        this.options = options;
    }

    public Integer getAnswer() {
        return answer;
    }

    public void setAnswer(Integer answer) {
        this.answer = answer;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    @Override
    public String toString() {
        return question + "\n" +
                "--------------------------------------\n" +
                options + "\n\n" +
                "======================================\n" +
                (char)((int)'A' + answer - 1) + "\n\n";
    }
}
